﻿using UnityEngine;
using System.Collections;

public class TimerManager : Singleton<TimerManager> 
{
	protected TimerManager () {}
	
	private int m_TimerCounter = 1;
	
	public Timer CreateTimer()
	{
		string timerName = "Timer" + m_TimerCounter.ToString();
		GameObject newTimer = new GameObject(timerName);
		newTimer.transform.parent = transform;
		Timer timer;
		
		timer = newTimer.AddComponent<Timer>();
		timer.Counter = m_TimerCounter;
		
		m_TimerCounter++;
		
		return timer;
	}
}
